package com.mypatch;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.patch.AppUpdate;

import java.io.File;


public class MainActivity extends AppCompatActivity {


    public static String IP = "http://118.178.180.228/api"; //正式
    //更新版本
    public static String versionUrl = IP + File.separator + "app" + File.separator + "latest?type=ctaa";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        AppUpdate.getInstance().appUpdate(0,
                this,
                "com.mypatch",
                FilePathManager.getInstance(this).getExternalCacheDir().getPath(),
                versionUrl);
    }
}